package entity;

import java.io.Serializable;

public class Position implements Serializable
{
	private static final long serialVersionUID = 1L;
	public int _X;
	public int _Y;

	public Position(int pX, int pY)
	{
		setX( pX );
		setY( pY );
	}

	public int getX()
	{
		return _X;
	}

	public void setX( int pX )
	{
		this._X = pX;
	}

	public int getY()
	{
		return _Y;
	}

	public void setY( int pY )
	{
		this._Y = pY;
	}

	public boolean equals( Position pos )
	{
		return pos.getX() == getX() && pos.getY() == getY();
	}
	
	public String toString()
	{
		return  getX() +","+  getY();
	}
}
